<?php
namespace app\api\validate\service;

use think\Validate;

class Order extends Validate
{
    protected $rule =   [
        'goods_id'             => 'require',
        'num'                  => 'require',
        'traveltype'           => 'require',
        'to_shop'              => 'require',

    ];

    protected $message  =   [
        'goods_id.require'         => '请选择项目',
        'num.unique'               => '请选择服务数量',
        'traveltype.require'       => '请选择正确出行方式',
        'to_shop.require'          => '请选择正确出行方式',
    ];

    protected $scene = [
        'add'   =>  ['goods_id','num','traveltype','to_shop'],
    ];
}
